<?php if (count($advs) > 0): ?>
    <ul class="h_t_1">
        <?php
        foreach ($advs as $adv):
            $url_path = $adv->url_path == "#Click vào đây để thay đổi đường dẫn ảnh" ? "#" : $adv->url_path;
            ?>
            <li class="h_t_2">
                <a href="<?php echo $url_path; ?>">
                    <img title="<?php echo $adv->title; ?>" alt="<?php echo $adv->title; ?>" src="/images/advs/<?php echo $adv->image_name; ?>"/>
                </a>
            </li>
        <?php endforeach; ?>
    </ul>
<?php endif; ?>
